[lessonSlugOrId].js 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295
  1. (() => {
  2. var exports = {};
  3. exports.id = 61991;
  4. exports.ids = [61991,64820];
  5. exports.modules = {
  6. /***/ 96887:
  7. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  8. "use strict";
  9. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  10. __webpack_require__.r(__webpack_exports__);
  11. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  12. /* harmony export */ "default": () => (/* binding */ pageWrapperTemplate),
  13. /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps),
  14. /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
  15. /* harmony export */ });
  16. /* harmony import */ var _sentry_server_config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96270);
  17. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58097);
  18. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__);
  19. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20997);
  20. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
  21. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71853);
  22. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__);
  23. /* harmony import */ var next_translate_Trans__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74137);
  24. /* harmony import */ var next_translate_Trans__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_translate_Trans__WEBPACK_IMPORTED_MODULE_4__);
  25. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(60866);
  26. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5__);
  27. /* harmony import */ var _lessons_module_scss__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(55696);
  28. /* harmony import */ var _lessons_module_scss__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_lessons_module_scss__WEBPACK_IMPORTED_MODULE_19__);
  29. /* harmony import */ var _components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1223);
  30. /* harmony import */ var _components_Course_LessonView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89591);
  31. /* harmony import */ var _components_DataFetcher__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12951);
  32. /* harmony import */ var _components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25869);
  33. /* harmony import */ var _components_PageContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9234);
  34. /* harmony import */ var _dls_Link_Link__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(61239);
  35. /* harmony import */ var _dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7190);
  36. /* harmony import */ var _pages_index_module_scss__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(23848);
  37. /* harmony import */ var _pages_index_module_scss__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_pages_index_module_scss__WEBPACK_IMPORTED_MODULE_18__);
  38. /* harmony import */ var _types_ApiErrorMessage__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(43194);
  39. /* harmony import */ var _utils_auth_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37883);
  40. /* harmony import */ var _utils_auth_apiPaths__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(13830);
  41. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(55943);
  42. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57933);
  43. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__, _components_Course_LessonView__WEBPACK_IMPORTED_MODULE_7__, _components_DataFetcher__WEBPACK_IMPORTED_MODULE_8__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_16__, _utils_navigation__WEBPACK_IMPORTED_MODULE_17__]);
  44. ([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__, _components_Course_LessonView__WEBPACK_IMPORTED_MODULE_7__, _components_DataFetcher__WEBPACK_IMPORTED_MODULE_8__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_16__, _utils_navigation__WEBPACK_IMPORTED_MODULE_17__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  45. const Loading = ()=>/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  46. className: (_pages_index_module_scss__WEBPACK_IMPORTED_MODULE_18___default().loadingContainer),
  47. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {})
  48. });
  49. const LessonPage = ()=>{
  50. const { lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5___default()("learn");
  51. const router = (0,next_router__WEBPACK_IMPORTED_MODULE_3__.useRouter)();
  52. const { slug , lessonSlugOrId } = router.query;
  53. const onUnEnrolledNavigationLinkClicked = ()=>{
  54. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_16__/* .logButtonClick */ .MY)("unenrolled_course_link", {
  55. courseSlugOrId: slug,
  56. lessonSlugOrId
  57. });
  58. };
  59. const renderError = (error)=>{
  60. if (error?.message === _types_ApiErrorMessage__WEBPACK_IMPORTED_MODULE_13__/* ["default"].CourseNotEnrolled */ .Z.CourseNotEnrolled) {
  61. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  62. className: (_lessons_module_scss__WEBPACK_IMPORTED_MODULE_19___default().container),
  63. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_PageContainer__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
  64. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)((next_translate_Trans__WEBPACK_IMPORTED_MODULE_4___default()), {
  65. i18nKey: "learn:not-enrolled",
  66. components: {
  67. link: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Link_Link__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
  68. onClick: onUnEnrolledNavigationLinkClicked,
  69. href: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_17__/* .getCourseNavigationUrl */ .ES)(slug),
  70. variant: _dls_Link_Link__WEBPACK_IMPORTED_MODULE_11__/* .LinkVariant.Blend */ .r.Blend
  71. }, 0)
  72. }
  73. })
  74. })
  75. });
  76. }
  77. return undefined;
  78. };
  79. const bodyRenderer = (lesson)=>{
  80. if (lesson) {
  81. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  82. children: [
  83. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
  84. title: lesson.title,
  85. url: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_17__/* .getCanonicalUrl */ .Z2)(lang, (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_17__/* .getLessonNavigationUrl */ .dC)(slug, lessonSlugOrId))
  86. }),
  87. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Course_LessonView__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
  88. lesson: lesson,
  89. lessonSlugOrId: lessonSlugOrId,
  90. courseSlug: slug
  91. })
  92. ]
  93. });
  94. }
  95. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {});
  96. };
  97. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  98. className: (_pages_index_module_scss__WEBPACK_IMPORTED_MODULE_18___default().pageContainer),
  99. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_DataFetcher__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
  100. loading: Loading,
  101. queryKey: (0,_utils_auth_apiPaths__WEBPACK_IMPORTED_MODULE_15__/* .makeGetLessonUrl */ .Gk)(slug, lessonSlugOrId),
  102. fetcher: _utils_auth_api__WEBPACK_IMPORTED_MODULE_14__/* .privateFetcher */ .UK,
  103. renderError: renderError,
  104. render: bodyRenderer
  105. })
  106. });
  107. };
  108. var __SENTRY_WRAPPING_TARGET_FILE__ = (0,_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(LessonPage);
  109. var serverComponentModule = /*#__PURE__*/Object.freeze({
  110. __proto__: null,
  111. 'default': __SENTRY_WRAPPING_TARGET_FILE__
  112. });
  113. /*
  114. * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
  115. * `pages/` directory.
  116. *
  117. * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,
  118. * this causes both TS and ESLint to complain, hence the pragma comments below.
  119. */
  120. const userPageModule = serverComponentModule ;
  121. const pageComponent = userPageModule ? userPageModule.default : undefined;
  122. const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
  123. const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
  124. const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
  125. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  126. const getInitialPropsWrappers = {
  127. '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
  128. '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
  129. '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
  130. };
  131. const getInitialPropsWrapper = getInitialPropsWrappers['/learning-plans/[slug]/lessons/[lessonSlugOrId]'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
  132. if (pageComponent && typeof origGetInitialProps === 'function') {
  133. pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
  134. }
  135. const getStaticProps =
  136. typeof origGetStaticProps === 'function'
  137. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/learning-plans/[slug]/lessons/[lessonSlugOrId]')
  138. : undefined;
  139. const getServerSideProps =
  140. typeof origGetServerSideProps === 'function'
  141. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/learning-plans/[slug]/lessons/[lessonSlugOrId]')
  142. : undefined;
  143. const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
  144. __webpack_async_result__();
  145. } catch(e) { __webpack_async_result__(e); } });
  146. /***/ }),
  147. /***/ 49880:
  148. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  149. "use strict";
  150. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  151. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  152. /* harmony export */ });
  153. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
  154. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  155. var _path;
  156. function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
  157. var SvgChevronLeft = function SvgChevronLeft(props) {
  158. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
  159. width: 15,
  160. height: 15,
  161. viewBox: "0 0 15 15",
  162. fill: "none",
  163. xmlns: "http://www.w3.org/2000/svg"
  164. }, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
  165. d: "M8.842 3.135a.5.5 0 0 1 .023.707L5.435 7.5l3.43 3.658a.5.5 0 0 1-.73.684l-3.75-4a.5.5 0 0 1 0-.684l3.75-4a.5.5 0 0 1 .707-.023Z",
  166. fill: "currentColor",
  167. fillRule: "evenodd",
  168. clipRule: "evenodd"
  169. })));
  170. };
  171. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgChevronLeft);
  172. /***/ }),
  173. /***/ 3932:
  174. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  175. "use strict";
  176. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  177. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  178. /* harmony export */ });
  179. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
  180. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  181. var _path;
  182. function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
  183. var SvgChevronRight = function SvgChevronRight(props) {
  184. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
  185. width: 15,
  186. height: 15,
  187. viewBox: "0 0 15 15",
  188. fill: "none",
  189. xmlns: "http://www.w3.org/2000/svg"
  190. }, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
  191. d: "M6.158 3.135a.5.5 0 0 1 .707.023l3.75 4a.5.5 0 0 1 0 .684l-3.75 4a.5.5 0 1 1-.73-.684L9.566 7.5l-3.43-3.658a.5.5 0 0 1 .023-.707Z",
  192. fill: "currentColor",
  193. fillRule: "evenodd",
  194. clipRule: "evenodd"
  195. })));
  196. };
  197. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgChevronRight);
  198. /***/ }),
  199. /***/ 77266:
  200. /***/ ((module) => {
  201. // Exports
  202. module.exports = {
  203. "buttonsContainer": "ActionButtons_buttonsContainer__8sYFk",
  204. "addReflectionButton": "ActionButtons_addReflectionButton__a87_E"
  205. };
  206. /***/ }),
  207. /***/ 91493:
  208. /***/ ((module) => {
  209. // Exports
  210. module.exports = {
  211. "container": "CourseMaterial_container__woIAL",
  212. "modalContainer": "CourseMaterial_modalContainer__XHCOl",
  213. "heading": "CourseMaterial_heading__m2XoE",
  214. "currentLesson": "CourseMaterial_currentLesson__jCz_g",
  215. "lessonContainer": "CourseMaterial_lessonContainer__bHHIg",
  216. "day": "CourseMaterial_day__FMLIb"
  217. };
  218. /***/ }),
  219. /***/ 31123:
  220. /***/ ((module) => {
  221. // Exports
  222. module.exports = {
  223. "viewContainer": "Lesson_viewContainer__KU3Kw",
  224. "modalHeading": "Lesson_modalHeading__MRE72",
  225. "container": "Lesson_container__pKSFk",
  226. "backText": "Lesson_backText__BqDit",
  227. "headerContainer": "Lesson_headerContainer__ccO73",
  228. "title": "Lesson_title__7kl3n",
  229. "tickIcon": "Lesson_tickIcon__ML0oE",
  230. "contentContainer": "Lesson_contentContainer__P16lZ",
  231. "headerButtonsContainer": "Lesson_headerButtonsContainer__ASxer",
  232. "courseMaterialButton": "Lesson_courseMaterialButton__jS61z"
  233. };
  234. /***/ }),
  235. /***/ 55696:
  236. /***/ ((module) => {
  237. // Exports
  238. module.exports = {
  239. "container": "lessons_container__O0LbF"
  240. };
  241. /***/ }),
  242. /***/ 69971:
  243. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  244. "use strict";
  245. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  246. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  247. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  248. /* harmony export */ });
  249. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  250. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  251. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  252. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  253. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60866);
  254. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2__);
  255. /* harmony import */ var _dls_Button_Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50497);
  256. /* harmony import */ var _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79717);
  257. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55943);
  258. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_dls_Button_Button__WEBPACK_IMPORTED_MODULE_3__, _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_4__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_5__]);
  259. ([_dls_Button_Button__WEBPACK_IMPORTED_MODULE_3__, _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_4__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_5__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  260. const CompleteButton = ({ isLoading , id , markLessonAsCompleted })=>{
  261. const { t } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2___default()("learn");
  262. const toast = (0,_dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_4__/* .useToast */ .pm)();
  263. const onMarkAsCompletedClicked = ()=>{
  264. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_5__/* .logButtonClick */ .MY)("mark_lesson_as_completed", {
  265. lessonId: id
  266. });
  267. markLessonAsCompleted(id, ()=>{
  268. toast(t("mark-complete-success"), {
  269. status: _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_4__/* .ToastStatus.Success */ .YZ.Success
  270. });
  271. });
  272. };
  273. return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, {
  274. isLoading: isLoading,
  275. isDisabled: isLoading,
  276. size: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_3__/* .ButtonSize.Small */ .qE.Small,
  277. onClick: onMarkAsCompletedClicked,
  278. children: t("mark-complete")
  279. });
  280. };
  281. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CompleteButton);
  282. __webpack_async_result__();
  283. } catch(e) { __webpack_async_result__(e); } });
  284. /***/ }),
  285. /***/ 27666:
  286. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  287. "use strict";
  288. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  289. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  290. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  291. /* harmony export */ });
  292. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  293. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  294. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  295. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  296. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71853);
  297. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_2__);
  298. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60866);
  299. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__);
  300. /* harmony import */ var _ActionButtons_module_scss__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(77266);
  301. /* harmony import */ var _ActionButtons_module_scss__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ActionButtons_module_scss__WEBPACK_IMPORTED_MODULE_18__);
  302. /* harmony import */ var _CompleteButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69971);
  303. /* harmony import */ var _components_Course_CourseFeedback__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18370);
  304. /* harmony import */ var _components_Course_utils_mutations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82969);
  305. /* harmony import */ var _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50497);
  306. /* harmony import */ var _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79717);
  307. /* harmony import */ var _hooks_useMutateMultipleKeys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(46181);
  308. /* harmony import */ var _hooks_useMutateWithoutRevalidation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(61368);
  309. /* harmony import */ var _hooks_useScrollToTop__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(73742);
  310. /* harmony import */ var _icons_chevron_left_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49880);
  311. /* harmony import */ var _icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(3932);
  312. /* harmony import */ var _types_auth_ActivityDay__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(97043);
  313. /* harmony import */ var _utils_auth_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37883);
  314. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(55943);
  315. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57933);
  316. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_CompleteButton__WEBPACK_IMPORTED_MODULE_4__, _components_Course_CourseFeedback__WEBPACK_IMPORTED_MODULE_5__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__, _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_8__, _hooks_useMutateMultipleKeys__WEBPACK_IMPORTED_MODULE_9__, _hooks_useMutateWithoutRevalidation__WEBPACK_IMPORTED_MODULE_10__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__, _utils_navigation__WEBPACK_IMPORTED_MODULE_16__]);
  317. ([_CompleteButton__WEBPACK_IMPORTED_MODULE_4__, _components_Course_CourseFeedback__WEBPACK_IMPORTED_MODULE_5__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__, _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_8__, _hooks_useMutateMultipleKeys__WEBPACK_IMPORTED_MODULE_9__, _hooks_useMutateWithoutRevalidation__WEBPACK_IMPORTED_MODULE_10__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__, _utils_navigation__WEBPACK_IMPORTED_MODULE_16__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  318. const ActionButtons = ({ lesson , courseSlug })=>{
  319. const scrollToTop = (0,_hooks_useScrollToTop__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)();
  320. const { day , id , isFirst , isLast , course , isCompleted } = lesson;
  321. const router = (0,next_router__WEBPACK_IMPORTED_MODULE_2__.useRouter)();
  322. const { t } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default()("learn");
  323. const mutateWithoutRevalidation = (0,_hooks_useMutateWithoutRevalidation__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)();
  324. const mutateMultipleKeys = (0,_hooks_useMutateMultipleKeys__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)();
  325. const { 0: isLoading , 1: setIsLoading } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
  326. const toast = (0,_dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_8__/* .useToast */ .pm)();
  327. const { 0: shouldOpenFeedbackModal , 1: setShouldOpenFeedbackModal } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
  328. const markLessonAsCompleted = (lessonId, successCallback)=>{
  329. setIsLoading(true);
  330. (0,_utils_auth_api__WEBPACK_IMPORTED_MODULE_14__/* .updateActivityDay */ .i1)({
  331. type: _types_auth_ActivityDay__WEBPACK_IMPORTED_MODULE_13__/* .ActivityDayType.LESSON */ .t.LESSON,
  332. lessonId
  333. }).then(()=>{
  334. (0,_components_Course_utils_mutations__WEBPACK_IMPORTED_MODULE_6__/* .mutateCachedLessonsAfterCompletion */ .z1)(mutateMultipleKeys, courseSlug, lessonId);
  335. (0,_components_Course_utils_mutations__WEBPACK_IMPORTED_MODULE_6__/* .mutateCachedCourseAfterCompletion */ .gx)(mutateWithoutRevalidation, courseSlug, lessonId);
  336. if (successCallback) {
  337. successCallback();
  338. }
  339. // check if the last lesson of the course is completed, and ask user for feedback
  340. const completedLessonsCount = course.lessons.filter((filterLesson)=>filterLesson.isCompleted).length;
  341. const isLastCompletedLessonOfCourse = completedLessonsCount === course.lessons.length;
  342. if (isLastCompletedLessonOfCourse) {
  343. setShouldOpenFeedbackModal(true);
  344. }
  345. }).catch(()=>{
  346. toast(t("common:error.general"), {
  347. status: _dls_Toast_Toast__WEBPACK_IMPORTED_MODULE_8__/* .ToastStatus.Error */ .YZ.Error
  348. });
  349. }).finally(()=>{
  350. setIsLoading(false);
  351. });
  352. };
  353. const navigateToLesson = (navigateToCourseSlug, navigateToLessonSlug)=>{
  354. router.push((0,_utils_navigation__WEBPACK_IMPORTED_MODULE_16__/* .getLessonNavigationUrl */ .dC)(navigateToCourseSlug, navigateToLessonSlug));
  355. };
  356. const onPreviousLessonClicked = ()=>{
  357. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__/* .logButtonClick */ .MY)("previous_lesson", {
  358. lessonId: id,
  359. isCompleted
  360. });
  361. const lessonIndex = day - 1;
  362. const previousLessonSlug = course.lessons[lessonIndex - 1].slug;
  363. scrollToTop();
  364. navigateToLesson(course.slug, previousLessonSlug);
  365. };
  366. const onNextLessonClicked = ()=>{
  367. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__/* .logButtonClick */ .MY)("next_lesson", {
  368. lessonId: id,
  369. isCompleted
  370. });
  371. const lessonIndex = day - 1;
  372. const nextLessonSlug = course.lessons[lessonIndex + 1].slug;
  373. scrollToTop();
  374. navigateToLesson(course.slug, nextLessonSlug);
  375. };
  376. const onAddReflectionClick = ()=>{
  377. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_15__/* .logButtonClick */ .MY)("add_lesson_reflection", {
  378. lessonId: id,
  379. isCompleted
  380. });
  381. };
  382. const shouldShowAddFeedbackButton = course?.userHasFeedback === false && (course?.isCompleted === true || shouldOpenFeedbackModal === true);
  383. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
  384. children: [
  385. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  386. className: (_ActionButtons_module_scss__WEBPACK_IMPORTED_MODULE_18___default().buttonsContainer),
  387. children: [
  388. !isFirst && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP, {
  389. isLoading: isLoading,
  390. isDisabled: isLoading,
  391. size: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* .ButtonSize.Small */ .qE.Small,
  392. onClick: onPreviousLessonClicked,
  393. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_icons_chevron_left_svg__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {})
  394. }),
  395. !isCompleted && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CompleteButton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
  396. id: id,
  397. isLoading: isLoading,
  398. markLessonAsCompleted: markLessonAsCompleted
  399. }),
  400. !isLast && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP, {
  401. isLoading: isLoading,
  402. isDisabled: isLoading,
  403. size: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* .ButtonSize.Small */ .qE.Small,
  404. onClick: onNextLessonClicked,
  405. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {})
  406. })
  407. ]
  408. }),
  409. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  410. className: (_ActionButtons_module_scss__WEBPACK_IMPORTED_MODULE_18___default().addReflectionButton),
  411. children: [
  412. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP, {
  413. size: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* .ButtonSize.Small */ .qE.Small,
  414. onClick: onAddReflectionClick,
  415. href: "https://quranreflect.com",
  416. isNewTab: true,
  417. type: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_7__/* .ButtonType.Success */ .L$.Success,
  418. children: t("add-reflection")
  419. }),
  420. shouldShowAddFeedbackButton && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_Course_CourseFeedback__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  421. shouldOpenModal: shouldOpenFeedbackModal,
  422. course: course,
  423. source: _components_Course_CourseFeedback__WEBPACK_IMPORTED_MODULE_5__/* .FeedbackSource.LessonPage */ .E.LessonPage
  424. })
  425. ]
  426. })
  427. ]
  428. });
  429. };
  430. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActionButtons);
  431. __webpack_async_result__();
  432. } catch(e) { __webpack_async_result__(e); } });
  433. /***/ }),
  434. /***/ 12596:
  435. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  436. "use strict";
  437. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  438. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  439. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  440. /* harmony export */ });
  441. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  442. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  443. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  444. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  445. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59003);
  446. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  447. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71853);
  448. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__);
  449. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60866);
  450. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__);
  451. /* harmony import */ var _CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91493);
  452. /* harmony import */ var _CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9__);
  453. /* harmony import */ var _components_Course_CompletedTick__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(86120);
  454. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(55943);
  455. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24709);
  456. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57933);
  457. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_utils_eventLogger__WEBPACK_IMPORTED_MODULE_6__, _utils_navigation__WEBPACK_IMPORTED_MODULE_8__]);
  458. ([_utils_eventLogger__WEBPACK_IMPORTED_MODULE_6__, _utils_navigation__WEBPACK_IMPORTED_MODULE_8__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  459. const CourseMaterial = ({ lessons , currentLessonId , courseSlug , isModal =false , })=>{
  460. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default()("learn");
  461. const router = (0,next_router__WEBPACK_IMPORTED_MODULE_3__.useRouter)();
  462. const onLessonClicked = (lessonId, slug)=>{
  463. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_6__/* .logButtonClick */ .MY)("sidebar_syllabus_lesson", {
  464. lessonId,
  465. courseSlug
  466. });
  467. router.push((0,_utils_navigation__WEBPACK_IMPORTED_MODULE_8__/* .getLessonNavigationUrl */ .dC)(courseSlug, slug));
  468. };
  469. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  470. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().container), {
  471. [(_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().modalContainer)]: isModal
  472. }),
  473. children: [
  474. !isModal && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  475. className: (_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().heading),
  476. children: t("learning-plan-material")
  477. }),
  478. lessons.map((lesson, index)=>{
  479. const dayNumber = index + 1;
  480. const { title , isCompleted , id , slug } = lesson;
  481. const onClickHandler = ()=>{
  482. onLessonClicked(id, slug);
  483. };
  484. return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  485. role: "button",
  486. tabIndex: index,
  487. onClick: onClickHandler,
  488. onKeyDown: onClickHandler,
  489. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().lessonContainer), {
  490. [(_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().currentLesson)]: id === currentLessonId
  491. }),
  492. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  493. children: [
  494. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
  495. className: (_CourseMaterial_module_scss__WEBPACK_IMPORTED_MODULE_9___default().day),
  496. children: `${(0,_utils_locale__WEBPACK_IMPORTED_MODULE_7__/* .toLocalizedNumber */ .rQ)(dayNumber, lang)}: `
  497. }),
  498. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
  499. children: [
  500. title,
  501. isCompleted ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_Course_CompletedTick__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {}) : ""
  502. ]
  503. })
  504. ]
  505. })
  506. }, id);
  507. })
  508. ]
  509. });
  510. };
  511. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CourseMaterial);
  512. __webpack_async_result__();
  513. } catch(e) { __webpack_async_result__(e); } });
  514. /***/ }),
  515. /***/ 89591:
  516. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  517. "use strict";
  518. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  519. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  520. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  521. /* harmony export */ });
  522. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  523. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  524. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  525. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  526. /* harmony import */ var _milkdown_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76915);
  527. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60866);
  528. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__);
  529. /* harmony import */ var _ActionButtons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27666);
  530. /* harmony import */ var _CourseMaterial__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12596);
  531. /* harmony import */ var _Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(31123);
  532. /* harmony import */ var _Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15__);
  533. /* harmony import */ var _components_Course_ContentContainer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79215);
  534. /* harmony import */ var _components_MarkdownEditor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3177);
  535. /* harmony import */ var _components_PageContainer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9234);
  536. /* harmony import */ var _dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50497);
  537. /* harmony import */ var _dls_ContentModal_ContentModal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(66606);
  538. /* harmony import */ var _icons_west_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(58421);
  539. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(55943);
  540. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24709);
  541. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(57933);
  542. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_milkdown_react__WEBPACK_IMPORTED_MODULE_2__, _ActionButtons__WEBPACK_IMPORTED_MODULE_4__, _CourseMaterial__WEBPACK_IMPORTED_MODULE_5__, _components_MarkdownEditor__WEBPACK_IMPORTED_MODULE_7__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__, _dls_ContentModal_ContentModal__WEBPACK_IMPORTED_MODULE_10__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_12__, _utils_navigation__WEBPACK_IMPORTED_MODULE_14__]);
  543. ([_milkdown_react__WEBPACK_IMPORTED_MODULE_2__, _ActionButtons__WEBPACK_IMPORTED_MODULE_4__, _CourseMaterial__WEBPACK_IMPORTED_MODULE_5__, _components_MarkdownEditor__WEBPACK_IMPORTED_MODULE_7__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__, _dls_ContentModal_ContentModal__WEBPACK_IMPORTED_MODULE_10__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_12__, _utils_navigation__WEBPACK_IMPORTED_MODULE_14__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  544. const LessonView = ({ lesson , courseSlug , lessonSlugOrId })=>{
  545. const { title , content , day } = lesson;
  546. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default()("learn");
  547. const { 0: isCourseMaterialModalOpen , 1: setCourseMaterialModalOpen } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
  548. const onBackButtonClicked = ()=>{
  549. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_12__/* .logButtonClick */ .MY)("back_to_course", {
  550. lessonSlugOrId,
  551. courseSlug
  552. });
  553. };
  554. const onCourseMaterialClicked = ()=>{
  555. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_12__/* .logButtonClick */ .MY)("course_material", {
  556. lessonSlugOrId,
  557. courseSlug
  558. });
  559. setCourseMaterialModalOpen(true);
  560. };
  561. return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_Course_ContentContainer__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  562. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  563. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().viewContainer),
  564. children: [
  565. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_ContentModal_ContentModal__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
  566. isOpen: isCourseMaterialModalOpen,
  567. onClose: ()=>{
  568. setCourseMaterialModalOpen(false);
  569. },
  570. hasCloseButton: true,
  571. header: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  572. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().modalHeading),
  573. children: t("learning-plan-material")
  574. }),
  575. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CourseMaterial__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  576. isModal: true,
  577. courseSlug: courseSlug,
  578. currentLessonId: lesson.id,
  579. lessons: lesson.course.lessons
  580. })
  581. }),
  582. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CourseMaterial__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  583. courseSlug: courseSlug,
  584. currentLessonId: lesson.id,
  585. lessons: lesson.course.lessons
  586. }),
  587. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  588. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().container),
  589. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_PageContainer__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
  590. children: [
  591. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  592. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().headerButtonsContainer),
  593. children: [
  594. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP, {
  595. onClick: onBackButtonClicked,
  596. href: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_14__/* .getCourseNavigationUrl */ .ES)(courseSlug),
  597. variant: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__/* .ButtonVariant.Ghost */ .Wu.Ghost,
  598. children: [
  599. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_icons_west_svg__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {}),
  600. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  601. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().backText),
  602. children: t("back-to-learning-plan")
  603. })
  604. ]
  605. }),
  606. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP, {
  607. onClick: onCourseMaterialClicked,
  608. variant: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_9__/* .ButtonVariant.Ghost */ .Wu.Ghost,
  609. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().courseMaterialButton),
  610. children: t("learning-plan-material")
  611. })
  612. ]
  613. }),
  614. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  615. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().headerContainer),
  616. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("p", {
  617. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().title),
  618. children: [
  619. `${t("day")} ${(0,_utils_locale__WEBPACK_IMPORTED_MODULE_13__/* .toLocalizedNumber */ .rQ)(day, lang)}`,
  620. `: ${title}`
  621. ]
  622. })
  623. }),
  624. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  625. className: (_Lesson_module_scss__WEBPACK_IMPORTED_MODULE_15___default().contentContainer),
  626. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_milkdown_react__WEBPACK_IMPORTED_MODULE_2__.MilkdownProvider, {
  627. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_MarkdownEditor__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
  628. isEditable: false,
  629. defaultValue: content
  630. })
  631. })
  632. }),
  633. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_ActionButtons__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
  634. lesson: lesson,
  635. courseSlug: courseSlug
  636. })
  637. ]
  638. })
  639. })
  640. ]
  641. })
  642. });
  643. };
  644. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LessonView);
  645. __webpack_async_result__();
  646. } catch(e) { __webpack_async_result__(e); } });
  647. /***/ }),
  648. /***/ 73742:
  649. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  650. "use strict";
  651. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  652. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  653. /* harmony export */ });
  654. const useScrollToTop = ()=>{
  655. // a function that will be invoked by the component using this hook to scroll to the top of the window.
  656. const scrollToTop = ()=>{
  657. if (false) {}
  658. };
  659. return scrollToTop;
  660. };
  661. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useScrollToTop);
  662. /***/ }),
  663. /***/ 43194:
  664. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  665. "use strict";
  666. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  667. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  668. /* harmony export */ });
  669. var ApiErrorMessage;
  670. (function(ApiErrorMessage) {
  671. ApiErrorMessage["CourseNotEnrolled"] = "You are not enrolled in this course";
  672. })(ApiErrorMessage || (ApiErrorMessage = {}));
  673. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiErrorMessage);
  674. /***/ }),
  675. /***/ 75184:
  676. /***/ ((module) => {
  677. "use strict";
  678. module.exports = require("@reduxjs/toolkit");
  679. /***/ }),
  680. /***/ 58097:
  681. /***/ ((module) => {
  682. "use strict";
  683. module.exports = require("@sentry/nextjs");
  684. /***/ }),
  685. /***/ 59003:
  686. /***/ ((module) => {
  687. "use strict";
  688. module.exports = require("classnames");
  689. /***/ }),
  690. /***/ 59606:
  691. /***/ ((module) => {
  692. "use strict";
  693. module.exports = require("humps");
  694. /***/ }),
  695. /***/ 59969:
  696. /***/ ((module) => {
  697. "use strict";
  698. module.exports = require("lodash/capitalize");
  699. /***/ }),
  700. /***/ 12372:
  701. /***/ ((module) => {
  702. "use strict";
  703. module.exports = require("lodash/findKey");
  704. /***/ }),
  705. /***/ 98492:
  706. /***/ ((module) => {
  707. "use strict";
  708. module.exports = require("lodash/groupBy");
  709. /***/ }),
  710. /***/ 35526:
  711. /***/ ((module) => {
  712. "use strict";
  713. module.exports = require("lodash/random");
  714. /***/ }),
  715. /***/ 64042:
  716. /***/ ((module) => {
  717. "use strict";
  718. module.exports = require("lodash/range");
  719. /***/ }),
  720. /***/ 16641:
  721. /***/ ((module) => {
  722. "use strict";
  723. module.exports = require("next-seo");
  724. /***/ }),
  725. /***/ 74137:
  726. /***/ ((module) => {
  727. "use strict";
  728. module.exports = require("next-translate/Trans");
  729. /***/ }),
  730. /***/ 60866:
  731. /***/ ((module) => {
  732. "use strict";
  733. module.exports = require("next-translate/useTranslation");
  734. /***/ }),
  735. /***/ 3280:
  736. /***/ ((module) => {
  737. "use strict";
  738. module.exports = require("next/dist/shared/lib/app-router-context.js");
  739. /***/ }),
  740. /***/ 92796:
  741. /***/ ((module) => {
  742. "use strict";
  743. module.exports = require("next/dist/shared/lib/head-manager-context.js");
  744. /***/ }),
  745. /***/ 3539:
  746. /***/ ((module) => {
  747. "use strict";
  748. module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
  749. /***/ }),
  750. /***/ 34014:
  751. /***/ ((module) => {
  752. "use strict";
  753. module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
  754. /***/ }),
  755. /***/ 78524:
  756. /***/ ((module) => {
  757. "use strict";
  758. module.exports = require("next/dist/shared/lib/is-plain-object.js");
  759. /***/ }),
  760. /***/ 78020:
  761. /***/ ((module) => {
  762. "use strict";
  763. module.exports = require("next/dist/shared/lib/mitt.js");
  764. /***/ }),
  765. /***/ 64406:
  766. /***/ ((module) => {
  767. "use strict";
  768. module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
  769. /***/ }),
  770. /***/ 24964:
  771. /***/ ((module) => {
  772. "use strict";
  773. module.exports = require("next/dist/shared/lib/router-context.js");
  774. /***/ }),
  775. /***/ 93431:
  776. /***/ ((module) => {
  777. "use strict";
  778. module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
  779. /***/ }),
  780. /***/ 11751:
  781. /***/ ((module) => {
  782. "use strict";
  783. module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
  784. /***/ }),
  785. /***/ 46220:
  786. /***/ ((module) => {
  787. "use strict";
  788. module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
  789. /***/ }),
  790. /***/ 10299:
  791. /***/ ((module) => {
  792. "use strict";
  793. module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
  794. /***/ }),
  795. /***/ 23938:
  796. /***/ ((module) => {
  797. "use strict";
  798. module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
  799. /***/ }),
  800. /***/ 29565:
  801. /***/ ((module) => {
  802. "use strict";
  803. module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
  804. /***/ }),
  805. /***/ 35789:
  806. /***/ ((module) => {
  807. "use strict";
  808. module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
  809. /***/ }),
  810. /***/ 1897:
  811. /***/ ((module) => {
  812. "use strict";
  813. module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
  814. /***/ }),
  815. /***/ 1428:
  816. /***/ ((module) => {
  817. "use strict";
  818. module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
  819. /***/ }),
  820. /***/ 28854:
  821. /***/ ((module) => {
  822. "use strict";
  823. module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
  824. /***/ }),
  825. /***/ 91292:
  826. /***/ ((module) => {
  827. "use strict";
  828. module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
  829. /***/ }),
  830. /***/ 34567:
  831. /***/ ((module) => {
  832. "use strict";
  833. module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
  834. /***/ }),
  835. /***/ 80979:
  836. /***/ ((module) => {
  837. "use strict";
  838. module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
  839. /***/ }),
  840. /***/ 93297:
  841. /***/ ((module) => {
  842. "use strict";
  843. module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
  844. /***/ }),
  845. /***/ 36052:
  846. /***/ ((module) => {
  847. "use strict";
  848. module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
  849. /***/ }),
  850. /***/ 84226:
  851. /***/ ((module) => {
  852. "use strict";
  853. module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
  854. /***/ }),
  855. /***/ 95052:
  856. /***/ ((module) => {
  857. "use strict";
  858. module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
  859. /***/ }),
  860. /***/ 59232:
  861. /***/ ((module) => {
  862. "use strict";
  863. module.exports = require("next/dist/shared/lib/utils.js");
  864. /***/ }),
  865. /***/ 71853:
  866. /***/ ((module) => {
  867. "use strict";
  868. module.exports = require("next/router");
  869. /***/ }),
  870. /***/ 16689:
  871. /***/ ((module) => {
  872. "use strict";
  873. module.exports = require("react");
  874. /***/ }),
  875. /***/ 20997:
  876. /***/ ((module) => {
  877. "use strict";
  878. module.exports = require("react/jsx-runtime");
  879. /***/ }),
  880. /***/ 52648:
  881. /***/ ((module) => {
  882. "use strict";
  883. module.exports = require("refresh-fetch");
  884. /***/ }),
  885. /***/ 57964:
  886. /***/ ((module) => {
  887. "use strict";
  888. module.exports = import("@milkdown/core");;
  889. /***/ }),
  890. /***/ 42154:
  891. /***/ ((module) => {
  892. "use strict";
  893. module.exports = import("@milkdown/preset-commonmark");;
  894. /***/ }),
  895. /***/ 76915:
  896. /***/ ((module) => {
  897. "use strict";
  898. module.exports = import("@milkdown/react");;
  899. /***/ }),
  900. /***/ 64744:
  901. /***/ ((module) => {
  902. "use strict";
  903. module.exports = import("@milkdown/utils");;
  904. /***/ }),
  905. /***/ 11601:
  906. /***/ ((module) => {
  907. "use strict";
  908. module.exports = import("@radix-ui/react-checkbox");;
  909. /***/ }),
  910. /***/ 77715:
  911. /***/ ((module) => {
  912. "use strict";
  913. module.exports = import("@radix-ui/react-dialog");;
  914. /***/ }),
  915. /***/ 4086:
  916. /***/ ((module) => {
  917. "use strict";
  918. module.exports = import("@radix-ui/react-radio-group");;
  919. /***/ }),
  920. /***/ 66704:
  921. /***/ ((module) => {
  922. "use strict";
  923. module.exports = import("@radix-ui/react-tooltip");;
  924. /***/ }),
  925. /***/ 28560:
  926. /***/ ((module) => {
  927. "use strict";
  928. module.exports = import("@radix-ui/react-visually-hidden");;
  929. /***/ }),
  930. /***/ 88813:
  931. /***/ ((module) => {
  932. "use strict";
  933. module.exports = import("firebase/compat/analytics");;
  934. /***/ }),
  935. /***/ 33773:
  936. /***/ ((module) => {
  937. "use strict";
  938. module.exports = import("firebase/compat/app");;
  939. /***/ }),
  940. /***/ 69915:
  941. /***/ ((module) => {
  942. "use strict";
  943. module.exports = import("js-cookie");;
  944. /***/ }),
  945. /***/ 45641:
  946. /***/ ((module) => {
  947. "use strict";
  948. module.exports = import("react-hook-form");;
  949. /***/ }),
  950. /***/ 3590:
  951. /***/ ((module) => {
  952. "use strict";
  953. module.exports = import("react-toastify");;
  954. /***/ }),
  955. /***/ 15941:
  956. /***/ ((module) => {
  957. "use strict";
  958. module.exports = import("swr");;
  959. /***/ }),
  960. /***/ 79847:
  961. /***/ ((module) => {
  962. "use strict";
  963. module.exports = import("swr/immutable");;
  964. /***/ }),
  965. /***/ 63477:
  966. /***/ ((module) => {
  967. "use strict";
  968. module.exports = require("querystring");
  969. /***/ })
  970. };
  971. ;
  972. // load runtime
  973. var __webpack_require__ = require("../../../../webpack-runtime.js");
  974. __webpack_require__.C(exports);
  975. var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  976. var __webpack_exports__ = __webpack_require__.X(0, [11497,79165,96270,24709,57933,61239,25869,50497,76410,79717,13830,37883,22197,12951,91308,42752,37013,1223,87574], () => (__webpack_exec__(96887)));
  977. module.exports = __webpack_exports__;
  978. })();
  979. //# sourceMappingURL=[lessonSlugOrId].js.map